#ifndef _LOG_H_INCLUDED_
#define _LOG_H_INCLUDED_
#include <iostream>
#include <errno.h>
#include <string.h>
#include "spdlog/spdlog.h"
#include "spdlog/sinks/daily_file_sink.h"
#include "spdlog/sinks/basic_file_sink.h"
	//对spdlog进行了封装的日志类
	class MyLogger 
	{
	private:
		std::shared_ptr<spdlog::sinks::basic_file_sink_mt> basic_sink;
		std::shared_ptr<spdlog::sinks::daily_file_sink_mt> daily_sink;
	public:
		MyLogger();
		~MyLogger() = default;
		std::shared_ptr<spdlog::logger> setBasicLogger(const char* logger_name);
		std::shared_ptr<spdlog::logger> setDailyLogger(const char* logger_name);
		static std::string getSysError();
	};


#endif